﻿using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.DependencyInjection;

namespace OpenAdmin.Application.CachingServices;

/// <summary>
/// 缓存服务基类
/// </summary>
public class CachingServiceBase
{
    /// <summary>
    /// 分布式缓存
    /// </summary>
    protected IDistributedCache Cache => App.ServicesProvider.GetService<IDistributedCache>();
}
